/*
 * $Id$
 */
package corejs.expr;

import corejs.rt.ActivationRecord;
import corejs.rt.Value;

import corejs.util.XmlPrinter;

public class SignedExpr extends UnaryExpr {
   
   private boolean _neg;
   
   public SignedExpr(final Expression expr) {
      super(expr);
   }
   
   public SignedExpr neg() {
      _neg = true;
      return this;
   }

   public void print(XmlPrinter printer) {
   }

   public Object eval(ActivationRecord scope) {
      return null;
   }

   @Override
   public Value accept(final ExpressionVisitor visitor) {
      return visitor.visitSignedExpr(_neg, _expr);
   }
}
